SONARJAVA-6704 Implement new rule S9132 - #5859
Draft
romainbrenguier wants to merge 1 commit into
Draft
Conversation
Contributor
romainbrenguier
force-pushed
the
new-rule/SONARJAVA-6704-S9132
branch
from
August 3, 2026 08:16
09e6cf8 to
d4a7231
Compare
Detect calls to setMaximumPoolSize() on ScheduledThreadPoolExecutor instances. This method has no effect because ScheduledThreadPoolExecutor uses a fixed-size pool determined solely by corePoolSize.
romainbrenguier
force-pushed
the
new-rule/SONARJAVA-6704-S9132
branch
from
August 3, 2026 08:27
d4a7231 to
b145d55
Compare
CI failed: Test failures occurred in the java-checks module due to a quickfix mismatch in ScheduledThreadPoolExecutorMaximumPoolSizeCheckTest introduced by the new rule S9132.OverviewUnique test failures were found across 2 CI log files in the FailuresTest Failures in java-checks Module (confidence: high)
Summary
Code Review ✅ ApprovedImplements new SonarJava rule S9132 to detect ineffective calls to setMaximumPoolSize() on ScheduledThreadPoolExecutor instances. No issues found. Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detect calls to setMaximumPoolSize() on ScheduledThreadPoolExecutor instances. This method has no effect because ScheduledThreadPoolExecutor uses a fixed-size pool determined solely by corePoolSize.
Part of